package com.plian.system.dto.zzd;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ZZDCompanyIndicatorsQuery",description = "浙政钉-搜索详情-企业信息-指标趋势-查询query")
public class ZZDCompanyIndicatorsQuery {

    @NotBlank(message = "columnName不能为空")
    @ApiModelProperty(value = "对应financialDataVO中的字段", required = true)
    private String columnName;

    @Max(value = 3, message = "queryType错误")
    @Min(value = 1, message = "queryType错误")
    @NotNull(message = "queryType不能为空")
    @ApiModelProperty(value = "1年度 2季度 3月度", required = true)
    private Integer queryType;

    @NotBlank(message = "orgId不能为空")
    @ApiModelProperty(value = "组织id", required = true)
    private String orgId;
}
